AudioTrackInfo

data class AudioTrackInfo(val audioCodec: String, val channels: Int, val sampleRate: Int, val audioDuration: Double, val numAudioPackets: Int, val numAudioFrames: Long, val trackName: String, val trackIndex: Int, val language: String)

Information about a single audio track from a video. This data class provides comprehensive metadata about audio tracks, including codec information, technical specifications, and track details.

Constructors

Link copied to clipboard
constructor(audioCodec: String, channels: Int, sampleRate: Int, audioDuration: Double, numAudioPackets: Int, numAudioFrames: Long, trackName: String, trackIndex: Int, language: String)

Properties

Link copied to clipboard

The codec string.

Link copied to clipboard

Duration of the audio track in seconds.

Link copied to clipboard

The number of audio channels.

Link copied to clipboard

Track language code (ISO 639-2T format: "und", "eng", "deu", etc.).

Link copied to clipboard

The number of audio frames.

Link copied to clipboard

The number of audio packets (matches the number of encoded chunks).

Link copied to clipboard

The audio sample rate.

Link copied to clipboard

Track index in the container.

Link copied to clipboard

Optional track name/label if available in metadata.